package com.cntcdt.api.service.impl;

import java.util.List;

import com.cntcdt.api.db.dao.MaintenanceHistoryDao;
import com.cntcdt.api.db.model.MaintenanceHistoryModel;
import com.cntcdt.api.service.MaintenanceHistoryService;

public class MaintenanceHistoryServiceImpl implements MaintenanceHistoryService {

	@Override
	public List<MaintenanceHistoryModel> findByTerminalAndSortTime(String Terminal, int sortTime) {
		return MaintenanceHistoryDao.getInstance().findByTerminalAndSortTime(Terminal, sortTime);
	}

	@Override
	public int insertModel(MaintenanceHistoryModel maintenanceHistory) {
		return MaintenanceHistoryDao.getInstance().insert(maintenanceHistory);
	}

}
